home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d7 / jbhost10.arc / JBHOST.MAC < prev    next >
Encoding:
Text File  |  1991-08-28  |  12.9 KB  |  440 lines

  1. Welcome to the COMMO HOST MODE version 1.00
  2. Written by Jeff Bishop
  3. (602)888-1456
  4.  
  5. The next section of this macro contains all of the setup variables
  6. required.  Change the name and passwords before running the host.
  7. To use Zmodem or Ymodem make sure that DSZ.COM is in your DOS path.
  8. Xmodem is internal to COMMO.
  9.  
  10. Some external programs are required.  These are:  PKUNZIP.EXE, ARJ.EXE,
  11. DOORWAY.EXE, and DSZ.COM.  Please make sure that
  12. the options you use from the menu have the supporting programs, or else
  13. the host will blow up.
  14.  
  15. Jeff Bishop
  16. August 28, 1991
  17.  
  18.                                 ***  Set these items ***
  19. {:setup}   {setv user,Jeff}          YOUR NAME
  20.            {setv pass,pword}         YOUR PASSWORD
  21.            {setv spass,shell}        SHELL PASSWORD
  22.            {setv epass,event}        Event shutdown password
  23.            {setv shutpass,shutdown}  Regular shutdown password
  24.            {setv pdir,c:\commo\}     DSZ DRIVER DIRECTORY
  25.            {setv pname,DSZ.COM}      DSZ program name (or GSZ.EXE, etc.)
  26.            {setv minutes,0}          Allowed minute online (0 means no limit)
  27.            {sete quit}
  28.  
  29. {:HOST}    {spoc Y}
  30.            {send ^MATE0^M}
  31.            {pause 3}
  32.            {local n}
  33.            {clear}
  34.            {disp 1,1,,^(COMMO^) is in host mode.}
  35.            {disp 2,1,,Press <Esc> to halt the host..}
  36.            {disp 3,1,,Type 'sysop' for local mode.}
  37.            {disp 4,1,,Type 'QUIT' to exit host.}
  38.            {disp 5,1}
  39. {:rng1}    {SETG 0,,L}
  40.            {setv rng}
  41.            {GETS rng,5,rng1}
  42.            {COMP rng,sysop}
  43.            {IFCO sysop}
  44.            {COMP rng,ring}
  45.            {IFCO rang}
  46.            {comp rng,quit}
  47.            {ifco quit}
  48.            {goto host}
  49. {:rang}    {SEND ^M~ATA^M}
  50.            {pause 9}
  51.            {setv rng}
  52.            {goto getuser}
  53. {:sysop}   {setv rng}
  54.            {spoc N}
  55. {:getuser} {elap}
  56.            {local y}
  57.            {call cls}
  58.            {send Welcome to the ^(COMMO^) host mode^M^J^M^J}
  59. {:ul}      {setv tmp} {setv y,0}
  60.            {setg 30,tout,y,^M^J}
  61. {:t0}      {send username: }
  62.            {gets tmp,20}
  63.            {comp tmp,%user}
  64.            {ifco gpass}
  65.            {incr Y}
  66.            {comp-ge y,3}
  67.            {ifco wuser}
  68.            {send wrong, tty again^M^J}
  69.            {setv tmp}
  70.            {goto t0}
  71. {:wuser}   {setv tmp} {setv y}
  72.            {call cls}
  73.            {send Wrong username!}
  74.            {goto host}
  75. {:gpass}   {setv y,0}
  76. {:t1}      {send password: }
  77.            {call getpass}
  78.            {comp tmp,%pass}
  79.            {ifco menu}
  80.            {incr Y}
  81.            {comp Y,3}
  82.            {ifco-ge wpass}
  83.            {send ^M^JTry again^m^j}
  84.            {goto t1}
  85. {:wpass}   {setv y}
  86.            {send wrong password!}
  87.            {goto host}
  88. {:menu}    {comp minutes,0}
  89.            {ifco menu2}
  90.            {comp minutes,%_elap}
  91.            {ifco-le tout}
  92. {:menu2}   {call cls}
  93.            {send ^(COMMO^) host mode Version 1.00 main menu^M^J^M^J}
  94.            {send (A)rj file view    (B)link transfers^M^J}
  95.            {send (C)hange directory (D)ownload a file^M^J}
  96.            {send (E)vent shutdown   (F)ile list^M^J}
  97.            {send (G)ood bye         (H)elp^M^J}
  98.            {send (L)ocal Shell      (P)age the sysop^M^J}
  99.            {send (S)hell to DOS     (T)ype a file^M^J}
  100.            {send (U)pload a file    (Z)ip file view^M^J}
  101.            {send (=)change drive    (!)shut down host^M^J^M^J}
  102.            {send Current date:  %_dat  %_tim^M^J^M^J}
  103.            {send You have been online for %_elap minutes^M^J}
  104.            {comp minutes,0}
  105.            {ifco menu3}
  106.            {setv tmp,%minutes}
  107.            {decr tmp,%_elap}
  108.            {send ^M^JTime remaining online is %tmp% minutes^M^J}
  109.            {setv tmp}
  110. {:menu3}   {send ^M^JYour Choice? }
  111.            {setv option}
  112.            {setg 60,tout,y,^m^j}
  113.            {gets-h option,1}
  114.            {comp option}
  115.            {ifco menu}
  116.            {comp option,A}
  117.            {ifco arjv}
  118.            {comp option,B}
  119.            {ifco blink}
  120.            {comp option,C}
  121.            {ifco chdir}
  122.            {comp option,D}
  123.            {ifco dwnload}
  124.            {comp option,E}
  125.            {ifco event}
  126.            {comp option,F}
  127.            {ifco dir}
  128.            {comp option,G}
  129.            {ifco bye}
  130.            {comp option,H}
  131.            {ifco help}
  132.            {comp option,L}
  133.            {ifco lshell}
  134.            {comp option,P}
  135.            {ifco page}
  136.            {comp option,S}
  137.            {ifco shell}
  138.            {comp option,T}
  139.            {ifco type}
  140.            {comp option,U}
  141.            {ifco upload}
  142.            {comp option,z}
  143.            {ifco zipv}
  144.            {comp option,=}
  145.            {ifco chdrv}
  146.            {comp option,!}
  147.            {ifco shut}
  148.            {goto wcerr}
  149. {:arjv}    {setv alister,arj l} {goto vlist}
  150. {:blink}   {call cls} {call fname}
  151.            {comp file}
  152.            {ifco menu}
  153.            {send ^m^jsending file now..^m^j}
  154.            {ascii-s0 %file}
  155.            {setv file}
  156.            {call pk}
  157.            {goto menu}
  158. {:chdir}   {setv tmp}
  159.            {send ^m^jDirectory Name: }
  160.            {gets tmp,12}
  161.            {comp tmp}
  162.            {ifco menu}
  163.            {exec cd %tmp}
  164.            {send ^m^jcurrent Directory is now %tmp%^m^j}
  165.            {setv tmp}
  166.            {call pk}
  167.            {goto menu}
  168. {:chdrv}   {setv tmp}
  169.            {send ^m^jDrive: }
  170.            {gets tmp,2}
  171.            {comp tmp}
  172.            {ifco menu}
  173.            {exec %tmp}
  174.            {send ^m^jcurrent Drive is now %tmp%^m^j}
  175.            {setv tmp}
  176.            {call pk}
  177.            {goto menu}
  178. {:dwnload} {call tmenu} {setv option}
  179.            {setg 60,menu,y,^m^j}
  180.            {gets-h option,1}
  181.            {comp option,X}
  182.            {ifco dlxm}
  183.            {comp option,Y}
  184.            {ifco dlym}
  185.            {comp option,Z}
  186.            {ifco dlzm}
  187.            {goto wcerr}
  188. {:dlxm}    {call fname}
  189.            {comp file}
  190.            {ifco menu}
  191.            {send ^m^jsending file now..^m^j}
  192.            {sxmodem %file}
  193.            {ifer 1,terr}
  194.            {setv file}
  195.            {call pk}
  196.            {goto menu}
  197. {:DLYM}    {setv option, port %_port sb %file} {goto dltrans}
  198. {:DLZM}    {setv option, port %_port sz -mrr %file}
  199. {:dltrans} {call fname}
  200.            {comp file}
  201.            {ifco menu}
  202.            {send ^m^jsending file now...^m^j}
  203.            {exec-d %pdir%%pname% %option}
  204.            {ifer 1,terr}
  205.            {setv option}
  206.            {setv file}
  207.            {call pk}
  208.            {goto menu}
  209. {:dir}     {send ^m^jpreparing the directory listing, please wait.^m^j}
  210.            {exec dir > %_hom%dir$$$}
  211.            {setv file,%_hom%dir$$$}
  212.            {call dispfil}
  213.            {exec del %_hom%dir$$$}
  214.            {setv file}
  215.            {goto menu}
  216. {:event}   {setv y,0}
  217.            {call cls}
  218. {:t4}      {send Password: }
  219.            {call getpass}
  220.            {send ^m^j}
  221.            {comp tmp,%epass}
  222.            {ifco devent}
  223.            {incr Y}
  224.            {comp Y,3}
  225.            {ifco wevpass}
  226.            {send ^M^JTry again^m^j}
  227.            {goto t4}
  228. {:wevpass} {setv y}
  229.            {send ^Gwrong password!}
  230.            {call pk}
  231.            {goto menu}
  232. {:devent}  {call cls}
  233.            {send Enter the time in 24-hour format that the^M^J}
  234.            {send host should be back online: }
  235.            {setv tmp}
  236.            {setg 45,tout,Y}
  237.            {gets tmp,20}
  238.            {comp tmp}
  239.            {ifco endev}
  240.            {send ^M^JThe host will be down until %tmp^M^J}
  241.            {hangup y}
  242.            {pause 3}
  243.            {hold %tmp}
  244.            {goto host}
  245. {:endev}   {setv Y} {goto menu}
  246. {:bye}     {send ^m^jgood bye.^m^j}
  247.            {hang Y}
  248.            {goto host}
  249. {:help}    {setv file,%_hom%jbhost.hlp}
  250.            {call dispfil}
  251.            {setv file}
  252.            {goto menu}
  253. {:lshell}  {ifca lsh1,lsh2}
  254. {:lsh1}    {call cls}
  255.            {send ^M^J^GStand by, sysop shelling to DOS ...}
  256. {:lsh2}    {shell}
  257.            {call pk}
  258.            {goto menu}
  259. {:page}    {call cls}
  260.            {SEND Type '/EXIT' to exit chat mode^M^J^M^JHi %user^M^J}
  261. {:CT2}     {setv line}
  262.            {gets line,78}
  263.            {comp line,/EXIT}
  264.            {ifco dchat,ct2}
  265. {:dchat}   {setv line}
  266.            {goto menu}
  267. {:shell}   {setv y,0}
  268.            {call cls}
  269. {:t2}      {send Password: }
  270.            {call getpass}
  271.            {send ^m^j}
  272.            {comp tmp,%spass}
  273.            {ifco dshel}
  274.            {incr Y}
  275.            {comp Y,3}
  276.            {ifco whpass}
  277.            {send ^M^JTry again^m^j}
  278.            {goto t2}
  279. {:whpass}  {setv y}
  280.            {setv tmp}
  281.            {send ^Gwrong password!}
  282.            {call pk}
  283.            {goto menu}
  284. {:dshel}   {send ^M^Jshelling to DOS^M^J}
  285.            {send Type 'EXIT' to return to host}
  286.            {exec DOORWAY com%_por% /M:60 /S:* /K:0 /G:ON /A:ON /V:D^U /b:Z /C:DOS}
  287.            {setv y}
  288.            {setv tmp}
  289.            {call pk}
  290.            {goto menu}
  291. {:shut}    {setv y,0}
  292.            {call cls}
  293. {:t3}      {send Password: }
  294.            {call getpass}
  295.            {send ^m^j}
  296.            {comp tmp,%shutpass}
  297.            {ifco dshut}
  298.            {incr Y}
  299.            {comp Y,3}
  300.            {ifco wshpass}
  301.            {send ^M^JTry again^m^j}
  302.            {goto t3}
  303. {:wshpass} {setv y}
  304.            {setv tmp}
  305.            {send ^M^J^Gwrong password!}
  306.            {call pk}
  307.            {goto menu}
  308. {:dshut}   {setv y}
  309.            {setv tmp}
  310.            {goto quit}
  311. {:type}    {call fname}
  312.            {comp file}
  313.            {ifco menu}
  314.            {call dispfil}
  315.            {goto menu}
  316. {:upload}  {setv option}
  317.            {call tmenu}
  318.            {setg 60,menu,y,^m^j}
  319.            {gets-h option,1}
  320.            {comp option,X}
  321.            {ifco ulxm}
  322.            {comp option,Y}
  323.            {ifco ulym}
  324.            {comp option,Z}
  325.            {ifco ulzm}
  326.            {goto wcerr}
  327. {:ulxm}    {call cls}
  328.            {send Name of file to upload: }
  329.            {gets file,40}
  330.            {comp file}
  331.            {ifco menu}
  332.            {send ^m^jReceiving file now...^m^j}
  333.            {rxmodem %file}
  334.            {ifer 1,terr}
  335.            {setv file}
  336.            {call pk}
  337.            {goto menu}
  338. {:ulym}    {setv option, port %_port rb}
  339.            {goto ultrans}
  340. {:ulzm}    {setv option, port %_port rz -m}
  341. {:ultrans} {send ^m^jReceiving file now...^m^j}
  342.            {exec-d %pdir%%pname% %option}
  343.            {ifer 1,terr}
  344.            {setv option}
  345.            {call pk}
  346.            {goto menu}
  347. {:zipv}    {setv alister,pkunzip -v}
  348. {:vlist}   {call fname}
  349.            {comp file}
  350.            {ifco menu}
  351.            {send ^m^jpreparing the listing.^m^j}
  352.            {exec %alister% %file% > arclist.$$$}
  353.            {setv file,arclist.$$$}
  354.            {call dispfil}
  355.            {exec del arclist.$$$}
  356.            {setv alister}
  357.            {setv file}
  358.            {goto menu}
  359. {:fname}   {setv file}
  360.            {send ^M^jFilename: }
  361.            {gets file,40}
  362.            {comp file}
  363.            {ifco yfile}
  364.            {ifexist %file,yfile,nfile}
  365. {:yfile}   {return}
  366. {:nfile}   {send ^m^jFile not found!.^m^j}
  367.            {call pk}
  368.            {goto menu}
  369. {:tmenu}   {call cls}
  370.            {send (X)modem (Y)modem (Z)modem^M^J^M^jChoice: }
  371.            {return}
  372. {:tout}    {send ^m^jTimed out.^m^j}
  373.            {hangup y}
  374.            {pause 3}
  375.            {goto host}
  376. {:cls}     {SEND ^[[2J^[[1;1H} {RETURN}
  377. {:pk}      {SEND ^M^JPress Any Key to continue ...}
  378.            {setg 120,tout}
  379.            {gets-H tmp,1}
  380.            {setv tmp}
  381.            {SEND ^M^J}
  382.            {RETURN}
  383. {:dispfil} {setv x,0}
  384.            {call cls}
  385.            {ropen %file,rd_end}
  386. {:disr}    {setv line}
  387.            {read line}
  388.            {send %line%^M^J}
  389.            {incr x}
  390.            {comp x,22}
  391.            {ifco np}
  392.            {goto disr}
  393. {:np}      {SEND ^M^JPress [S] to stop, any other key to continue ...}
  394.            {setg 120,tout}
  395.            {gets-H tmp,1}
  396.            {comp tmp,s}
  397.            {ifco ,NP1}
  398.            {setv x}
  399.            {setv line}
  400.            {rclose}
  401.            {call cls}
  402.            {return}
  403. {:NP1}     {setv x,0}
  404.            {call cls}
  405.            {goto disr}
  406. {:rd_end}  {setv line}
  407.            {setv x}
  408.            {call pk}
  409.            {call cls}
  410.            {return}
  411. {:getpass} {SETV tmp}
  412.            {setg 120,tout,n}
  413.            {gets-H TMP,20,GP2}
  414. {:GP2}     {RETURN}
  415. {:terr}    {call cls}
  416.            {send ^M^J^M^J^Gerror during transfer}
  417.            {call pk}
  418.            {goto menu}
  419. {:wcerr}   {setv option}
  420.            {send ^M^J^GWrong Entry}
  421.            {call pk}
  422.            {goto menu}
  423. {:quit}    {call cls}
  424.            {send Shutting down the host}
  425.            {ifca shang,go_on}
  426. {:shang}   {elap}
  427.            {hang Y}
  428.            {pause 3}
  429. {:go_on}   {init} {local n}
  430.            {setv user}
  431.            {setv pass}
  432.            {setv Epass}
  433.            {setv spass}
  434.            {setv shutpass}
  435.            {setv minutes}
  436.            {setv option}
  437.            {setv pdir}
  438.            {setv pname}
  439.            {macload commo.mac}
  440.